package com.job.meeting.pojo;

import com.google.gson.Gson;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.zip.GZIPOutputStream;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class wechatMessageNewMeeting {
    private unit real_name;
    private unit date;
    private unit time;
    private unit meetingRoom;
    private unit extra;

    wechatMessageNewMeeting(String json) {
        wechatMessageNewMeeting meeting = new Gson().fromJson(json, wechatMessageNewMeeting.class);
        this.real_name = meeting.getReal_name();
        this.date = meeting.getDate();
        this.time = meeting.getTime();
        this.extra = meeting.getExtra();
    }
    @Override
    public String toString()
    {
        return new Gson().toJson(this);
    }
}
